import Vue from 'vue'
import Router from 'vue-router'
import VariantLocus from '@/components/variantlocus/index.vue'


Vue.use(Router)

export default new Router({
    mode: 'history',
    base: '/varca/',
    routes: [{
        path: '/',
        name: 'home',
        redirect: '/VariantLocus',
        component: resolve => require(['@/components/home/index.vue'], resolve),
        children: [{
            path: '/VariantLocus',
            name: 'variantlocus',
            component: resolve => require(['@/components/variantlocus/index.vue'], resolve),
            // meta: {
            //     keepAlive: true,
            // }
        }, {
            path: '/VariantLocusSample',
            name: 'variantlocussample',
            component: resolve => require(['@/components/variantlocus/sample.vue'], resolve),
        }, {
            path: '/VariantLocusMutation',
            name: 'variantlocusmutation',
            component: resolve => require(['@/components/variantlocus/mutation.vue'], resolve),
        }, {
            path: '/VariantLocusStudy',
            name: 'variantlocusstudy',
            component: resolve => require(['@/components/variantlocus/study.vue'], resolve),
        }, {
            path: '/VariantLocusMutationData',
            name: 'variantlocusMutationData',
            component: resolve => require(['@/components/variantlocus/MutationData.vue'], resolve),
        }]
    },{
        path:'/test',
        component:resolve=>require(['@/components/variantlocus/test.vue'],resolve)
    },{
        path:'/testCanvas',
        component:resolve=>require(['@/components/variantlocus/testCanvas.vue'],resolve)
    }]
})